package com.krlin.soccer.soccer.mapper;

import com.krlin.soccer.soccer.entity.Judge;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface JudgeMapper {
    int deleteByPrimaryKey(Integer judgeIdcard);

    int insert(Judge record);

    int insertSelective(Judge record);

    Judge selectByPrimaryKey(Integer judgeIdcard);

    int updateByPrimaryKeySelective(Judge record);

    int updateByPrimaryKey(Judge record);

    @Select("select * from judge where judge_idcard = #{idCard}")
    Judge selectJudgeByIdCard(String idCard);

    @Select("select * from judge")
    List<Judge> getAll();
}